#ifndef QUAD_H
#define QUAD_H

#include "Game Engine/Header/d3dUtil.h"
#include "Game Engine/Header/Vertex.h"

// Builds a quad in xz-plane.
class Quad
{
public:
	Quad();
	~Quad();

	void init(ID3D10Device* device, DWORD m, DWORD n, float dx);
	void draw();

	std::vector<Vertex> GetVertices();
	std::vector<DWORD> GetIndices();

	DWORD mNumVertices;
	DWORD mNumFaces;

private:
	DWORD mNumRows;
	DWORD mNumCols;

 	std::vector<Vertex> mVertices;
	std::vector<DWORD> mIndices;

	ID3D10Device* md3dDevice;
	ID3D10Buffer* mVB;
	ID3D10Buffer* mIB;
};

#endif // QUAD_H
